<?php /* Smarty version 2.6.26, created on 2018-07-25 23:42:01
         compiled from D:%5Citemstudy%5Citem/member%5Ctemplates/goods/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'import', 'D:\\itemstudy\\item/member\\templates/goods/index.html', 1, false),array('modifier', 'img_size', 'D:\\itemstudy\\item/member\\templates/goods/index.html', 33, false),array('modifier', 'truncate', 'D:\\itemstudy\\item/member\\templates/goods/index.html', 37, false),)), $this); ?>
<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "index/header_shop.html",'title' => "产品列表"), $this);?>

<style type="text/css">
a.simg{ width:60px; height:60px; line-height:60px; border:1px solid #efefef; padding:1px; float:left;}
a.simg img{ max-height:60px; max-width:60px; }
.ttl{ width:100%; float:left;}
.ttl a{ text-align:left; font-size:12px; color:#333; padding:0 10px 0 5px; line-height:22px; float:left;  }
.ttl span{font-size:12px;line-height:22px; padding:0 10px 0 20px; color:#999999; text-align:left; float: left;} 
.intro{ width:440px; text-align:left; line-height:18px; padding:3px 0 0 5px; color:#999999; float:left;}
</style> 
<div class="tab_name"><span>产品列表</span></div> 
<div class="filter">
	<a href="?m=goods" <?php if ($_GET['status'] == '1' || $_GET['status'] == ''): ?>class="ch"<?php endif; ?>>售卖列表</a>
	<a href="?m=goods&status=0" <?php if ($_GET['status'] == '0'): ?>class="ch"<?php endif; ?>>下架产品</a> 
</div> 
<div class="lbox">
	<table width="100%" class="ltable">
		<thead>
			<tr> 
				<th width="30">&nbsp;</th>
				<th>商品名</th> 
				<th width="60">价格</th>
				<th width="60">库存</th>
				<th width="60">状态</th>
				<th width="120">操作</th> 
				<th width="80">发布时间</th> 
			</tr>
		</thead>
		<tbody> 
	<?php if ($this->_tpl_vars['data']['list']): ?>	
		<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>		 
			<tr> 
				<td style="padding:15px 0 15px 10px;"> 
					 <a class="simg" href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '80x80') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '80x80')); ?>
"/></a>
				</td>
				<td valign="top">
					<div class="ttl"><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></div>
					<div class="intro"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['intro'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 68, "...") : smarty_modifier_truncate($_tmp, 68, "...")); ?>
</div>
				</td> 
				<td><?php if ($this->_tpl_vars['i']['promote_price'] == ''): ?> <?php echo $this->_tpl_vars['i']['price']; ?>
<?php else: ?> <?php echo $this->_tpl_vars['i']['promote_price']; ?>
</s><?php endif; ?></td>
				<td><?php if ($this->_tpl_vars['i']['stock'] == '0'): ?>无货<?php else: ?><?php echo $this->_tpl_vars['i']['stock']; ?>
<?php endif; ?> </td>
				<td><?php if ($this->_tpl_vars['i']['status'] == '1'): ?>上架<?php else: ?>下架<?php endif; ?></td>
				<td>
					<a href="?m=goods&a=edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">编辑</a> 
					<a href="?m=goods&a=del&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
				</td>
				<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?> 
	<?php else: ?>
			<tr><td colspan="7" class="btm"><div class="nomsg"><i></i><span>暂无产品~</span></div></td></tr>
	<?php endif; ?>		
		</tbody> 
	</table>
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>